package com.wealth.sms.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.sms.entity.MessageRecord;

import iaas.repository.BaseRepository;

/**
 * 
 * @author chan
 */

@Repository
public interface MessageRecordDao extends BaseRepository<MessageRecord, Long>, JpaSpecificationExecutor<MessageRecord> {
	
	//查询最新的一条短信记录
	public MessageRecord findTopByCorpIdAndMobileOrderByCreateTimeDesc(Long corpid,String mobile);
	
}


